<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>呼叫中心</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>

</head>
<body>
<div class="container-fluid customer-page">
    <div class="card">
        <div class="card-header">
            <h1>呼叫中心列表</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <!-- 今天 本周 本月 全部-->
                    <div class="time-search pull-left">
                        <input type="hidden" id="dateType" name="dateType" value="today"/>
                        <div class="today active-second" onclick="selectTime('today')">今天</div>
                        <div class="week" onclick="selectTime('week')">本周</div>
                        <div class="month" onclick="selectTime('month')">本月</div>
                        <div class="all" onclick="selectTime('all')">全部</div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="请输入联系人" id="contactName" name="contactName" autocomplete="off">
                            <button class="btn btn-primary" type="button" onclick="searchCallCenterList(1)" ><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                        </div>
                        <button class="btn btn-default btn-senior" data-toggle="collapse" data-target="#filterContent" aria-expanded="false" aria-controls="filterContent"><i class="mdi mdi-sort-variant"></i>高级筛选
                        </button>
                    </div>
                </div>
            </div>
            <div class="collapse filter-content" id="filterContent">
                <div class="row">
                    <div class="form-group col-lg-4 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label" for="createTmStart">创建起止日期</label>
                        <div class="form-content input-group">
                            <input type="text" id="createTmStart" class="form-control date-input"
                                   placeholder="请输入起始时间" autocomplete="off">
                            <span class="input-group-addon">至</span>
                            <input type="text" id="createTmEnd" class="form-control date-input"
                                   placeholder="请输入截止时间" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label for="customerName">客户名称</label>
                        <div>
                            <input class="form-control" type="text" placeholder="请输入客户名称"
                                   id="customerName" name="customerName" autocomplete="off">
                        </div>
                    </div>
                    <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                        <label class="control-label" for="callShortestTime">通话时长(秒)</label>
                        <div class="form-content input-group">
                            <input type="text" id="callShortestTime" class="form-control"
                                   placeholder="请输入最短时长" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')">
                            <span class="input-group-addon">至</span>
                            <input type="text" id="callLongestTime" class="form-control"
                                   placeholder="请输入最长时长" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,1})?).*$/g, '$1')">
                        </div>
                    </div>

                    <div class="form-group col-lg-12 col-md-4 col-sm-12 col-xs-12 btn-box">
                        <label>&nbsp;</label>
                        <div class="text-right">
                            <button class="btn btn-primary" type="button" onclick="searchCallCenterList(2)">
                                <i class="mdi mdi-magnify"></i><span>搜索</span></button>
                            <button class="btn btn-default" onclick="clearAllData()">重置</button>
                        </div>
                    </div>
                </div>
            </div>
            <table id="callCenterTable"></table>
        </div>
    </div>


</div>


<div class="modal fade" tabindex="-1" role="dialog" id="signModal">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h4>标记</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal">
                    <input type="hidden" id="formId" name="formId"/>
                    <div class="form-group">
                        <label class="control-label col-xs-3">意向电话</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isInterested" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">无意向</option>
                                <option value="2">有意向</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">产生话术</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isWordArt" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">恶意回复电话</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isSpiteCall" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">投诉电话</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isComplaintsCall" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">优秀通话</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isGoodCall" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-3">警告通话</label>
                        <div class="col-xs-7">
                            <select class="form-control" id="isWarnCall" title="请选择">
                                <option value="0">请选择</option>
                                <option value="1">否</option>
                                <option value="2">是</option>
                            </select>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" onclick="updateSign();">确定</button>
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            </div>
        </div>
    </div>
</div>




<div class="modal fade" id="updateContact"  data-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true" style="width: 100%;height: 100%;">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="staticBackdropLabel">编辑联系人</h5>
                <input type="hidden" id="editContactFormId" name="editContactFormId"/>
            </div>
            <div class="modal-body" >
                <div class="row" style="padding: 0 20px;box-sizing: border-box">
                    <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                        <div id="courseContactList" class="clearfix">
                            <div class="list" tagName="0">
                                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12" style="display: flex">
                                    <span>联系人：</span>
                                    <input type="text" id="callContact" class="form-control usercourse" style="width: 60%" >
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" onclick="updateContactSubmit()">提交</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script type="text/javascript" src="/js/crm/common/dataRangePicker.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-multiselect.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!-- 拖动 -->
<script src="/js/bootstrap-table/extensions/resizable/bootstrap-table-resizable.min.js"></script>
<script src="/js/crm/common/colResizable-1.6.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/crm/common/common.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/callcenter/user/callCenterUserForm.js"></script>
</html>